/*******************************************************************************
 * Copyright (c) 2011-11-10 @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a>.
 * All rights reserved.
 *
 * Contributors:
 *     <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> - initial API and implementation
 ******************************************************************************/
package com.redhat.auth.ejb.vo;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> 
 * @since 2011-11-10
 */
public class FunctionEntityTypeVO implements Serializable {

	private static final long serialVersionUID = 4291912743388448190L;
	private Long id;
	private String name;
	private FunctionEntityTypeVO parent;

	public FunctionEntityTypeVO() {
		super();
	}

	public FunctionEntityTypeVO(Long id, String name,
			FunctionEntityTypeVO parent) {
		this();
		this.id = id;
		this.name = name;
		this.parent = parent;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public FunctionEntityTypeVO getParent() {
		return parent;
	}

	public void setParent(FunctionEntityTypeVO parent) {
		this.parent = parent;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
